<%@ page language="java" contentType="text/html; charset=UTF-8"   pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
 
	<div class="not_right"  id="caselist">
		<div class="not_righttitle">
			<div class="not_righttitle01"> <a href="#">我的案例</a></div>			
		<div class="not_righttb">
				<div class="exam_title"> 
					<div class="exam_title01"> 我的案例 </div>
				  <a href="my_caseaddec.htm">
					<div class="exam_title02" style="float:right;">	<a href="javascript:addcase();  ">
						<div class="add_img"><img src="${imgpath}/images/add0.png"/> </div>
						新增案例 </div>
					</a> </div>
				<div class="exam_select">
				<select  id="selectBox" class="kczx_divlb01"  
			 style="width:180px;height:22px;background-color:#FFF;border-radius:0px;padding:0;margin:0;outline:none;">
				<option  value='all'> 所属类别（不限）</option>
				<c:forEach var="cn" items="${codename}" varStatus="cnstatus">
				<option  value='${cn.code}'　 <c:if test="${case_tp == cn.code }">selected </c:if> >${cn.name}</option>
				</c:forEach>
			</select>
				<%-- 	<div class="selectBox"> <a href="javascript:void(0);" id="aa">所属类别（不限）</a>
						<p> <a href="javascript:void(0)" class="current" value="所属课程">所属课程（不限）</a> 
						<a href="javascript:void(0)" value="社会建筑">社会建筑</a> 
						<a href="javascript:void(0)" value="">测量建筑</a> 
						<a href="javascript:void(0)" value="变态建筑">变态建筑</a> 
						<a href="javascript:void(0)" value="危机干预与哀伤辅导">危机干预与哀伤辅导</a> </p>
					</div>
					--%>
					<a href="#" onclick="querytp()">
					<div class="exam_selectbutt"> 查&nbsp;&nbsp;询 </div>
					</a> </div>
					
					<c:forEach var="mycase" items="${pageData.data}" varStatus="status">
					<div class="exam_content" id="case_${mycase.case_id}">
						<div class="exam_contlist">
						    <div class="note_contlistl"> 
							<div class="exam_contlistl01"><a href="#" onclick="showCasedetail('${mycase.case_id}')">${mycase.tilte}</a></div>							
							<div class="note_contlistl01" style="color:#666;">类别：<a href="http://${url}/case/listTopCase?type=${mycase.id_tp}" style="color:#0A8CD2" target="_blank">${mycase.name_tp} </a> </div>
							<div class="exam_contlistl02">发布于：  <fmt:formatDate value="${mycase.create_dt}"   pattern="yyyy-MM-dd hh:mm:ss" type="date" dateStyle="long" />  
 								<a href="#" onclick="editcase('${mycase.case_id}')"> <span style="margin-left:10px; color:#0A8CD2;"> 编辑 </span> </a>
 								<a href="#" onclick="delcase('${mycase.case_id}')"><span style="margin-left:10px; color:#0A8CD2;"> 删除 </span> </a> </div>
							</div>
 						</div>
					</div>
					</c:forEach>
				 
				</div> 
		</div>
		
			<!--  执行分页 ，构造分页 -->
		<script language="javascript">
		  // 初始化点击分页按钮的方法	  
	 	  onPageClickFunction =  function(pageNumber, event){	 		 
		 		var pdata = {};
		 		pdata.type = '';		 	
		    	if(pageNumber){
		    		pdata.pageNo = pageNumber;
		    	}
		    	AjaxTool("GET","/student/case/init?menu=case",pdata,"html",
			    	function (data){		    	
				    	 //返回内容 
				    	if(data){		    		 
				    		$("#contentDiv").html(data);		    		
				    	};
				    } 
		    	);  
	      };
	</script>
 
		<!--  我是分页 -->
		 <%@ include file="../paging.jsp"%>
		
	</div>
	
	
	 
		  
 
	 

 <div class="not_right"  id="beforeadd" style="display:none">
		<div class="not_righttitle">
			<div class="not_righttitle01"> <a href="#">我的案例</a> &nbsp;&gt;&nbsp;新增案例</div>
			
		<div class="not_righttb" style="width:98%;">
			<div class="add_notetitle" style="height:150px;text-indent:2em"> 
			<h3 style="text-align:center;margin-top:20px;margin-bottom:20px;">案例分享告知书</h3>
			
<p style="text-indent:2em">本人同意筑学堂网络建筑院将我的案例报告收录入案例库，并将案例内容用于专业人士的学习和讨论。</p>
   <p style="text-indent:2em"> 我了解这一做法可能带来的利弊，同时，我已经完全删除任何可能有助于个人身份识别的信息。如由此带来对来访者和我自身的伤害，将由我自己承担责任。</p>
			</div>
			<div class="add_notebutton" style="margin-top:30px;">
				
				<a href="#" class="add_notebutton02" style="margin-left:20px;float:right;margin-right:30px;" onClick="canceladdcase()"> 取消 </a> 
				<a href="#"  onClick="accept()"><div class="add_notebutton01" style="float:right;border:none;text-align:center;line-height:25px;">确&nbsp;&nbsp;定</div></a>
</div> 
		</div> 
		</div>
	</div> 

<!--班级成员-->
<div id="casedetail" class="class_check" >
	<div class="class_checklist" style="height:10px;margin-top:5px;"> 
		<a href="#" onClick="closeCaseDetail()"><div class="add_notecolse" style="margin-right:15px;"> <img src="../images/close.png"/> </div></a> 
	</div>
	<div id="membercontent"  style="text-align:left;padding-left:40px;max-height:300px;overflow-y:auto" >
	案例名称：
	<span id="detailtitle"></span><br/>
	来访者信息：
	<span id="detailcase_visitor"></span><br/>
	来访者主述：
	<span id="detailcase_visitor_say"></span><br/>
	咨询目标与治理方法：
	<div id="detailcase_handle_content"></div> 
	<div id="detailcase_handle_content_ori" style="display:none"> </div>
	治疗结果：
	<div id="detailcase_cure_result"></div>
	<div id="detailcase_cure_result_ori" style="display:none"></div> 
	</div>	
	
</div>
 
 